package com.guigui.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigui.common.utils.PageUtils;
import com.guigui.gulimall.product.entity.AttrGroupEntity;
import com.guigui.gulimall.product.vo.BrandWithAttrVo;
import com.guigui.gulimall.product.vo.web.SpuAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author xin
 * @email 806748502@qq.com
 * @date 2021-07-23 14:10:33
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catId);

    AttrGroupEntity getInfoById(Long attrGroupId);

    /**
     * 获取分类下所有分组&关联属性
     * @param catelogId
     * @return
     */
    List<BrandWithAttrVo> getBrandWithAttrByCatelogId(Long catelogId);

    /**
     * 获取skuId下所有分组&关联属性
     */
    List<SpuAttrGroupVo> getBrandWithAttrBySpuId(Long skuId, Long catalogId);
}

